<script src="./script.js"></script>
<style src="./style.css"></style>
<template>
  <div class="app-container">
    <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px"
             label-position="left">
      <el-form-item label="限购SKU" prop="field101">
        <el-input v-model="formData.field101"
                  placeholder="格式 100=20,200=30，代表SKU编号100的产品限购20，SKU编号200限购30，最后不用加逗号"
                  clearable :style="{width: '100%'}">
        </el-input>
      </el-form-item>
      <el-form-item label="生效时间" prop="field104">
        <el-date-picker type="datetimerange" v-model="formData.field104" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
                        :style="{width: '100%'}" start-placeholder="开始时间" end-placeholder="结束时间" range-separator="至"
                        clearable></el-date-picker>
      </el-form-item>
      <el-form-item size="large">
        <el-button type="primary" @click="submitForm">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>


